package com.zklh.leetcode.top100.problem136;

import java.util.Arrays;
import java.util.function.IntBinaryOperator;

/**
 * @author Nelson
 * @Description 解法1
 * @create 2023-02-07 10:45
 */
public class Solution1 {
    public int singleNumber(int[] nums) {
        return Arrays.stream(nums).reduce((left, right) -> left ^ right).getAsInt();
    }
}
